require 'tlsmail'
require 'time'

content = <<EOF
From: bradley.m.hart@gmail.com
To: bradley.m.hart@gmail.com
Subject: Hello!
Date: #{Time.now.rfc2822}

How are you.
EOF

Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
Net::SMTP.start('smtp.gmail.com', 587, 'gmail.com', 'bradley.m.hart@gmail.com', 'bmhart', :login) do |smtp|
  smtp.send_message(content, 'bradley.m.hart@gmail.com', 'bradley.m.hart@gmail.com')  
end